package com.dayuanit.tools ;                   //打包名称：域名倒置.包名
import com.dayuanit.users.Person;
import com.dayuanit.school.School;

public class Bike{
	private String color ;
	private String name ;
	private Person person ;
	private School school ;
//=========================================
	public void setColor(String color ){
		this.color = color ;
	}

	public String getColor ( ){
		return color ;
	}


	public void setName (String name) {
		this.name = name ;
	}


	public String getName ( ){
		return name ;
	}


	public void setPerson (Person person ){
		this.person =person ;
	}


	public Person getPerson ( ){
		return person ;
	} 


	public void setSchool ( School school){
		this.school = school ;
	}

	public School getSchool ( ){
		return school ;
	}

//==========================================
	public void move ( ) {


	}



	public void move ( Person person){
		String color = "黄色";
		String name = "OFO自行车";
		System.out.println("家住"+person.getAdds( )+person.getAge( )+"岁"+person.getSex( )+"性"+person.getName( )+",骑着"+color+name+"到"+school.getAdds( )+school.getName( )+"去考试。");
	}
}